package com.jeesite.modules.dp.entity.yqrecord;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 邀请记录Entity
 * @author hancing.com
 * @version 2024-12-16
 */
@Table(name="dp_yqrecord", alias="a", label="邀请记录信息", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="yqr", attrName="yqr", label="邀请账号"),
		@Column(name="byqr", attrName="byqr", label="被邀请账号", isQuery=false),
		@Column(name="yqrname", attrName="yqrname", label="邀请人", isQuery=false),
		@Column(name="byqrname", attrName="byqrname", label="被邀请人名称", isQuery=false),
		@Column(name="qyj", attrName="qyj", label="权益金", isQuery=false, isUpdateForce=true),
		@Column(name="qyjtype", attrName="qyjtype", label="权益金",  isUpdateForce=true), 
		@Column(name="qyjtitle", attrName="qyjtitle", label="权益金来源", isQuery=false),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class DpYqrecord extends DataEntity<DpYqrecord> {
	
	private static final long serialVersionUID = 1L;
	private String yqr;		// 邀请账号
	private String byqr;		// 被邀请账号
	private String yqrname;		// 邀请人
	private String byqrname;		// 被邀请人名称
	private Double qyj;		// 权益金
	private String qyjtitle;		// 权益金来源

	private String qyjtype;
	
	
	public String getQyjtype() {
		return qyjtype;
	}

	public void setQyjtype(String qyjtype) {
		this.qyjtype = qyjtype;
	}

	public DpYqrecord() {
		this(null);
	}
	
	public DpYqrecord(String id){
		super(id);
	}
	
	@NotBlank(message="邀请账号不能为空")
	@Size(min=0, max=255, message="邀请账号长度不能超过 255 个字符")
	public String getYqr() {
		return yqr;
	}

	public void setYqr(String yqr) {
		this.yqr = yqr;
	}
	
	@NotBlank(message="被邀请账号不能为空")
	@Size(min=0, max=255, message="被邀请账号长度不能超过 255 个字符")
	public String getByqr() {
		return byqr;
	}

	public void setByqr(String byqr) {
		this.byqr = byqr;
	}
	
	@Size(min=0, max=255, message="邀请人长度不能超过 255 个字符")
	public String getYqrname() {
		return yqrname;
	}

	public void setYqrname(String yqrname) {
		this.yqrname = yqrname;
	}
	
	@Size(min=0, max=255, message="被邀请人名称长度不能超过 255 个字符")
	public String getByqrname() {
		return byqrname;
	}

	public void setByqrname(String byqrname) {
		this.byqrname = byqrname;
	}
	
	public Double getQyj() {
		return qyj;
	}

	public void setQyj(Double qyj) {
		this.qyj = qyj;
	}
	
	@Size(min=0, max=255, message="权益金来源长度不能超过 255 个字符")
	public String getQyjtitle() {
		return qyjtitle;
	}

	public void setQyjtitle(String qyjtitle) {
		this.qyjtitle = qyjtitle;
	}
	
}